#include "power_plant_staff_training_management_system.h"
#include "ui_power_plant_staff_training_management_system.h"
#include <QSqlQuery>
#include <QSqlError>
#include <QDebug>
#include "loginwin.h"
#include "mainwin.h"
#include "selectwin.h"
#include "faceregisterwin.h"
#include <QMessageBox>
#include "userlogin.h"
#include "user_page.h"

Power_plant_staff_training_management_system::Power_plant_staff_training_management_system(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Power_plant_staff_training_management_system)
{
    ui->setupUi(this);

}

Power_plant_staff_training_management_system::~Power_plant_staff_training_management_system()
{
    delete ui;
}

void Power_plant_staff_training_management_system::timerEvent(QTimerEvent *e)
{

}


void Power_plant_staff_training_management_system::on_userLogin_clicked()
{
//    UserLogin *win = new UserLogin();
//    win->show();
//    this->close();
    User_page *win = new User_page();
    win->show();
    this->close();
}

void Power_plant_staff_training_management_system::on_managerLogin_clicked()
{
    LoginWin *loginwin = new LoginWin();
    loginwin->show();
    this->close();
}
